package com.mbj.san;

import java.util.Scanner;
/*
public class test_3_6 {
    public static void main(String[] args) {
        //char a = '中';
        //System.out.println(a + 0);
      */
/*  int b = 0b1101;
        System.out.println(b);*//*


        //long 长整形 8个字节
*/
/*
        long a = 123456789;
        long b = 112233445566778899;
        //注意：随便写一个数字 字面量 默认类型是 int.
        // 112233445566778899虽然没超过long的范围，但超过了本身
        //int 类型的表示范围。
        //如果需要随便写一个数字字面量当成 long类型的，需要在后面加L或l；
        long c = 112233445566778899L;
*//*


        //浮点型(小数)
        //float单精度 占四个字节
        //注意：随便写一个小数字面量默认是 double 类型，如果希望是float类型后面加上 F/f
*/
/*        float a = 99.9;
        float b = 99.9F;*//*

*/
/*        System.out.println("-------引用数据类型--------");
        //String 字符串类型
        String num = "我是超人！";
        System.out.println(num);*//*

       // int a = (int)19.6;
   */
/*     double a = 0;
        double y = 0;
        int num = 1;
        Scanner inn = new Scanner(System.in);
        a = inn.nextDouble();

        if(a > 0 && a < 5)
            y = a*a + 1;

        else if(a == 0)
            y = 0;

        else if(a > -5 && a < 0)
           y = -a + 4;
        else
        {
            num = 0;
            System.out.println("No meaning");
        }

        if(num == 1)
        {
            System.out.printf("x=%.2f,y=%.2f", a,y);

        }*//*

    }
}
*/

/*
public class test_3_6 {
    public static void main(String[] args)
    {
                int x, y, z;
                Scanner inn = new Scanner(System.in);
                x = inn.nextInt();
                y = inn.nextInt();
                z = inn.nextInt();

                if(x > y)
                {
                    int t = x;
                    x = y;
                    y = t;
                }

                if(x > z)
                {
                    int t = x;
                    x = z;
                    z = t;
                }

                if(y > z)
                {
                    int t = y;
                    y = z;
                    z = t;
                }

                System.out.printf("%d->%d->%d\n", x, y, z);


    }

}
*/

import java.util.Scanner;

/*public class Main {
    public static void main(String[] args)
    {
        double x1,y1;
        double x2,y2;
        double x3,y3;
        Scanner inn = new Scanner(System.in);
        x1 = inn.nextDouble();
        y1 = inn.nextDouble();
        x2 = inn.nextDouble();
        y2 = inn.nextDouble();
        x3 = inn.nextDouble();
        y3 = inn.nextDouble();

        double cd1 = 0;
        double cd2 = 0;
        double cd3 = 0;
        cd1 = Math.sqrt( (x1 - x2)*(x1 - x2) + (y1 - y2)*(y1 - y2) );
        cd2 = Math.sqrt( (x1 - x3)*(x1 - x3) + (y1 - y3)*(y1 - y3) );
        cd3 = Math.sqrt( (x3 - x2)*(x3 - x2) + (y3 - y2)*(y3 - y2) );

        double zc = 0;
        double mj = 0;
        double s = 0;
        if(cd1 + cd2 > cd3 && cd1 + cd3 > cd2 && cd3 + cd2 > cd1)
        {
            zc = cd1 + cd2 + cd3;
            s = zc / 2;
            mj = Math.sqrt(s*(s - cd1)* (s - cd2)*(s - cd3) );
            System.out.printf("L = %.2f, A = %.2f\n", zc, mj);
        }
        else
            System.out.printf("Impossible\n");

    }
}*/

/*public class test_3_6 {
    public static void main(String[] args)
    {
        //面试题：
        byte a = 10;
        byte b = 10;
        int c =  a + b;//必须要用 int 及更大
        double d =  a + b;//的范围来接收
        System.out.println(c);//20
        System.out.println(d);//20.0
    }

}*/
//强制类型转换
/*public class test_3_6 {
    public static void main(String[] args)
    {
        //面试题：
        int a = 128;
      //  byte b = a;//大的给小的会直接报错
       byte b = (byte) a;//强制类型转换就可以了
        System.out.println(b);
    }

}*/















